import network from './request'
import apiList from './apiList'


export function editHouseGroups(data, params) {
    return network.request({
        url: apiList.house.editHouseGroups,
        data,
        ...params
    })
}



export function getHouseGroups(data, params) {
    return network.request({
        url: apiList.house.getHouseGroups,
        data,
        ...params
    })
}

export function getHouseFiles(data, params) {
    return network.request({
        url: apiList.house.getHouseFiles,
        data,
        ...params
    })
}

export function batchAddUserHouseFile(data, params) {
    return network.request({
        url: apiList.house.batchAddUserHouseFile,
        data,
        ...params
    })
}

export function deleteHouseFiles(data, params) {
    return network.request({
        url: apiList.house.deleteHouseFiles,
        data,
        ...params
    })
}

export function getUserShareCode(data, params) {
    return network.request({
        url: apiList.house.getUserShareCode,
        data,
        ...params
    })
}

export function editUserShareCode(data, params) {
    return network.request({
        url: apiList.house.editUserShareCode,
        data,
        ...params
    })
}

export function getUserImgs(data, params) {
    return network.request({
        url: apiList.house.getUserImgs,
        data,
        ...params
    })
}

export function batchAddUserImgs(data, params) {
    return network.request({
        url: apiList.house.batchAddUserImgs,
        data,
        ...params
    })
}

export function deleteUserImages(data, params) {
    return network.request({
        url: apiList.house.deleteUserImages,
        data,
        ...params
    })
}

export function getCodeContents(data, params) {
    return network.request({
        url: apiList.house.getCodeContents,
        data,
        ...params
    })
}

export function editCodeContents(data, params) {
    return network.request({
        url: apiList.house.editCodeContents,
        data,
        ...params
    })
}

export function getContentByCodeId(data, params) {
    return network.request({
        url: apiList.house.getContentByCodeId,
        data,
        ...params
    })
}

export function codeShareContentSuccess(data, params) {
    return network.request({
        url: apiList.house.codeShareContentSuccess,
        data,
        ...params
    })
}

export function getXhsSign(data, params) {
    return network.request({
        url: apiList.house.getXhsSign,
        data,
        ...params
    })
}

export function getUserCodeCntChangeHis(data, params) {
    return network.request({
        url: apiList.house.getUserCodeCntChangeHis,
        data,
        ...params
    })
}
